projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b962eba
)
Fixed infinite while loop in python-info-current-defun
author
Fabián Ezequiel Gallina
<fgallina@cuca>
Thu, 17 May 2012 03:02:55 +0000
(
00:02
-0300)
committer
Fabián Ezequiel Gallina
<fgallina@gnu.org>
Thu, 17 May 2012 03:02:55 +0000
(
00:02
-0300)
Was caused when a beginning of defun was in the beginning of buffer
because python-beginning-of-innermost-defun never reached the real
start when (bobp)
lisp/progmodes/python.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/python.el
b/lisp/progmodes/python.el
index 9f14bef5258110dd2a20865018576fb7e43bcfeb..250f4812a33d17904de07ecfac5ada0b13796cc9 100644
(file)
--- a/
lisp/progmodes/python.el
+++ b/
lisp/progmodes/python.el
@@
-786,7
+786,8
@@
innermost definition."
(forward-line -1)
(not (bobp))
(not (back-to-indentation))))
- (forward-line 1)
+ (unless (bobp)
+ (forward-line 1))
(point-marker))
(if innermost
(python-beginning-of-defun)